import recruit from "./recruit";
import transaction from "./transaction";
import scheduling from './scheduling'
import employee from "./employee";

const views = [
    {
        path: '/per/recruit',
        name: '招聘管理',
        iconUrl: '/src/assets/img/menu/招聘管理.png',
        redirect: '/per/recruit/job-demand',
        component: ()=> import('../../views/com/Layout.vue'),
        children: recruit
    },
    {
        path: '/per/emp',
        name: '员工管理',
        iconUrl: '/src/assets/img/menu/员工管理.png',
        component: ()=>import('../../views/com/Layout.vue'),
        children: employee
    },
    {
        path: '/per/home',
        name: '人事首页',
        component:()=>import("../../views/per/PPage.vue")
    },
    {
        path: '/per/service',
        name: '员工自助',
        component: ()=>import("../../views/per/selfService.vue"),
        children: employee
    },
    {
        path: '/cm',
        name: '入职管理',
        component: ()=>import("../../views/per/CareerManagement.vue")
    },
    {
        path: '/emp-abnormal',
        name: '员工异动',
        iconUrl: '/src/assets/img/menu/人员异动.png',
        component: ()=>()=>import('../../views/com/Layout.vue'),
        children: transaction
    },
    {
        path: '/scheduling',
        name: '排班管理',
        iconUrl: '/src/assets/img/menu/排班管理.png',
        component: ()=>import('../../views/com/Layout.vue'),
        children:scheduling
    },
    {
        path: '/lcm',
        name: '合同管理',
        iconUrl: '/src/assets/img/menu/合同管理.png',
        component: ()=>import("../../views/per/contractManagement/LaborContractManage.vue")
    },
    {
        path: '/eda',
        name: '转正申请创建',
        component: ()=>import("../../views/per/DemandRelease/EmptDemandApplication.vue")
    }
]

export default views;
